﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLibrary
{
    public class ASCIIExt
    {
        public static Dictionary<string, int> CreateTableASCII()
        {
            Dictionary<string, int> dicASCII = new Dictionary<string, int>();
            for (int i = 0; i < 256; i++)
            {
                dicASCII.Add(System.Text.Encoding.Default.GetString(new byte[1] { Convert.ToByte(i) }), i);
            }
            return dicASCII;
        }
    }
}
